package com.github.cakin.shiro.chapter11.dao;

import com.github.cakin.shiro.chapter11.entity.Permission;

/**
 * @className: PermissionDao
 * @description: 权限 数据访问层
 * @date: 2020/5/19
 * @author: cakin
 */
public interface PermissionDao {
    /**
     * 功能描述：创建权限
     *
     * @param permission 权限
     * @return Permission 权限
     * @author cakin
     * @date 2020/5/19
     */
    Permission createPermission( Permission permission );

    /**
     * 功能描述：删除权限
     *
     * @param permissionId 权限id
     * @author cakin
     * @date 2020/5/19
     */
    void deletePermission( Long permissionId );

}
